using System;
using System.Collections.Generic;
using System.Text;
using System.Globalization;
using System.Security.Cryptography;
using CodePlex.Resourceful.Amazon.EC2;

namespace CodePlex.Resourceful.Examples
{
    public static class EC2Example
    {

        public static void Run()
        {
            string aws = Environment.GetEnvironmentVariable("AWS");

            string accessKeyID = aws.Split(':')[0];
            string secretAccessKey = aws.Split(':')[1];

         

            EC2Client client = new EC2Client(accessKeyID,secretAccessKey);
            client.Tracer.AddListener(Console.Out);
            client.DescribeInstances();
        }

    }
}
